package com.li.mapper;

import com.li.pojo.po.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2024-04-13
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getMenuList(String menuName, String status);

    @Select("select * from sys_menu")
    List<Menu> getAll();

    void updateMenu(Menu menu);

    @Select("select * from sys_menu where parent_id = #{menuId}")
    List<Menu> selectParentId(Long menuId);
}
